using System;
using System.Collections.Generic;
using System.Text;


namespace BABILON
{
    class Pedion : Robot
    {
        private int _F;

        public int F
        {
            get { return _F; }
            set { _F = value; }
        }

        public Pedion()
            : base(20)
        {
            Random ran = new Random();
            F = ran.Next(1,5);
        }

        public override string TenLop()
        {
            return "Pedion";
        }

        public override int DiChuyen(int S)
        {
            //M * S + (F + 1) * S / 2
            int nangLuongTieuThu = M * S + (F + 1) * S / 2;
            F += nangLuongTieuThu;
            return nangLuongTieuThu;
        }

        public override void XuatThongTin()
        {
            base.XuatThongTin();
            Console.WriteLine("Do linh hoat: " + F);
            //Console.WriteLine("Quang duong no di duoc: " + getS());
            Console.WriteLine("Nang luong tieu thu: " + F);
        }
    }
}
